$color: #409EFF;

.saveRolePerm {

  /* From uiverse.io by @adamgiebl */
  button {
    background-color: #eee;
    border: none;
    padding: 0.3rem;
    width: 6rem;
    box-shadow: 0 0.4rem #dfd9d9;
    font-size: 1rem;
    border-radius: 1rem;
    color: lightcoral;
    cursor: pointer;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;

    &:focus {
      outline: none;
    }
  }

  button span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    border: 4px solid $color;
  }

  button span::before {
    content: "";
    display: block;
    position: absolute;
    width: 8%;
    height: 500%;
    background: var(--lightgray);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-60deg);
    transition: all 0.3s;
  }

  button:hover span::before {
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 100%;
    background: $color;
  }

  button:hover {
    color: white;
  }

  button:active span::before {
    background: $color;
  }
}